Skip to main content
Version: 5.x.x

EmitterAcknowledgeType


import { EmitterAcknowledgeType } from "@hyper-fetch/sockets"

Description

Defined in emitter/emitter.types.ts:21

Preview

type EmitterAcknowledgeType<Response,AdapterType> = (response: { data: null; error: Error; extra: null } | { data: Response; error: null; extra: ExtractSocketExtraType<AdapterType> }) => void;

Structure

(response: {data:null,error:Error,extra:null} | {data:Response,error:null,extra:ExtractSocketExtraType<AdapterType>}) => void